import request from '@/utils/request'
import orderList from '../views/order/order-list/order-list'

const orderService = {
/**
 * 查询订单
 */
getOrders: (data)=>{
    return request({
        url: '/order/orders',
        method: 'post',
        data: data
      })
},
/**
 * 取消订单
 */
cancelOrder:(data) =>{
    return request({
        url: '/order/cancel',
        method: 'put',
        data: data
      })
}
}

export default orderService;
